import 'package:flutter/material.dart';
import 'package:flutter_mvc/flutter_mvc.dart';

abstract class BasePresenter<T extends BaseController>{
  late T controller;
  T get c=>controller;

  void initState(){

  }

  void onResume(){

  }

  void onPause(){

  }


  void showLoading({String? text}) {
    c.showLoading();
  }

  void dismissLoading() {
    c.dismissLoading();
  }

  void dispose() {}

  void onRecyclerResume() {

  }
  void onRecyclerPause() {

  }

  void setState([VoidCallback? callback]){
    c.setState(callback);
  }

  void setRootState(){
    c.setRootState();
  }


}